﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.File.List" %>

<%=_framePage.GetPagerFormHtml("/SystemManage/Basics/File/List.aspx")%>


<form id="pageForm" method="post" runat="Server" class="pageForm" onsubmit="return navTabSearch(this);" action="/SystemManage/Basics/File/list.aspx">

<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
			    <span>文件名&nbsp;</span>
				<asp:TextBox ID="txtFileName" runat="server"></asp:TextBox>&nbsp;&nbsp;
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			    <div class="buttonActive"><div class="buttonContent"><button type="submit">&nbsp;查&nbsp;询&nbsp;</button></div></div>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="/SystemManage/Control/FileControl/Upload/Upload.aspx?tabid=<%= _framePage.NavTabId%>&dir=doc&limit=10"
			       target="dialog" mask="true" title="添加文件"><span>添加</span></a></li>
            <li><a class="delete" href="/SystemManage/Basics/File/Delete.aspx?ajax=dels" target="selectedTodo" title="请确定要删除"><span>删除勾选</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="116">
	<table class="list" width="100%" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="5%" style="display: none">编号</th>
				<th width="30%">文件名</th>
				<th width="10%">文件大小</th>
				<th width="10%">上传者</th>
				<th width="10%">下载次数</th>
				<th width="10%">上传时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repFile">
                <ItemTemplate>
                <tr target="uid" rel="<%# Eval("Id")%>">
                    <td height="25px"><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td style="display: none"><%# Eval("Id")%></td>
				    <td><span class="<%# GetFileSpanClass(Eval("FileName").ToString())%>">
				        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%# Eval("FileName")%></span>
				    </td>
				    <td><%# GetSizeString((int)Eval("FileSize"))%></td>
				    <td><%# Eval("UploadMen")%></td>
				    <td><%# Eval("DownloadCount")%></td>
				    <td><%# Eval("UploadTime", "{0:yyyy-MM-dd}")%></td>
				    <td>   		                
				        <%#GetPreviewAnchor(Eval("FileName").ToString(), Eval("FilePath").ToString())%>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/File/Download.aspx?uid=<%# Eval("Id")%>">下载</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/File/Delete.aspx?uid=<%# Eval("Id")%>" target="ajaxTodo" title="请确定要删除" warn="请选择一项">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
	
	</div>
	
    <%= _framePage.GetPagerContentHtml()%>
</div>
</form>

<script type="text/javascript">
    $(document).ready(function() {
        $(".prettyPhoto").prettyPhoto();
    });
</script>